<!-- This file is just a basic wrapper for your bridged, Ajax/Flex, application.

	 This file will NOT be overwritten once it has been generated, therefor it
	 is perfectly safe to customize it to fit your needs.
	 
	 If you need to have this file re-generated, please delete it. -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<title>Test page for the sfCharShuiku class</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="FABridge.js"></script>
	<script type="text/javascript" src="sfCharShuiku.js"></script>
<script language="JavaScript" type="text/javascript">
    function initChar() {
     			alert("ss");
     			alert(sfCharShuiku);
		       sfCharShuiku.addInfo("33","44","33");
			try { 
			//sfCharShuiku 是flash的名字 详细参见sfCharShuiku.js
				sfCharShuiku.initChar( 80,50,110);//警戒水位,实测水位,河道最大水位
				
				//添加其他指标 如 死水位
				
				
			} catch(e) {
			  alert(e.message);
			}
	 
		}
		
		function addLine()
		{
			alert("addline");
			var i=Math.random()*(100-10)+10;
			sfCharShuiku.addLine(i,"<font color='red'>test"+i+"</font>");
			
		}
</script>

</head>

<body>

<h1>Test page for the <code>sfCharShuiku</code> class</h1>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="sfCharShuikuTest" width="700" height="600"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
	<param name="movie" value="riverChar.swf" />
	<param name="flashvars" value="bridgeName=b_sfCharShuiku"/>
	<param name="quality" value="high" />
	<param name="allowScriptAccess" value="always" />
	<embed src="riverChar.swf" quality="high"
		width="700" height="600" name="riverCharTest" 
		align="middle"
		play="true"
		loop="false"
		quality="high"
		allowScriptAccess="always"
		type="application/x-shockwave-flash"
		pluginspage="http://www.adobe.com/go/getflashplayer" 
		flashvars="bridgeName=b_sfCharShuiku">
	</embed>
</object>

<h2>Test controls</h2>
<div>
<button  onclick="initChar()">Demo</button></div>
<p><button  onclick="addLine()">AddLine</button></p>

</body>

</html>